#pragma once 

#include"rtthread.h"
class robot_list;
typedef int (*alg_t)(robot_list* s, void *data);

class robot_list
{
public:
    robot_list();
    ~robot_list();
    robot_list *prev, *next;
    void* data;

    static void insert(robot_list** head,robot_list* node);
    static void remove(robot_list** head, robot_list* node);
};

